package com.cm.caseManagement.pojo.entity;
import com.cm.caseManagement.annotation.Excel;
import com.cm.caseManagement.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 申报记录对象 cm_apply_record
 *
 * @author ruoyi
 * @date 2025-10-05
 */
public class CmApplyRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 申报id */
    private Long id;

    /** 外部唯一id */
    @Excel(name = "外部唯一id")
    private String publicId;

    /** 申报类型：0结算、1结案 */
    @Excel(name = "申报类型：0结算、1结案")
    private Long applyType;

    /** 案件数量 */
    @Excel(name = "案件数量")
    private Long caseNum;

    /** 申报金额 */
    @Excel(name = "申报金额")
    private BigDecimal applyAmount;

    /** 审核状态：0待审核、1未通过、2已通过 */
    @Excel(name = "审核状态：0待审核、1未通过、2已通过")
    private Long auditState;

    /** 申报时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申报时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applyTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setPublicId(String publicId)
    {
        this.publicId = publicId;
    }

    public String getPublicId()
    {
        return publicId;
    }

    public void setApplyType(Long applyType)
    {
        this.applyType = applyType;
    }

    public Long getApplyType()
    {
        return applyType;
    }

    public void setCaseNum(Long caseNum)
    {
        this.caseNum = caseNum;
    }

    public Long getCaseNum()
    {
        return caseNum;
    }

    public void setApplyAmount(BigDecimal applyAmount)
    {
        this.applyAmount = applyAmount;
    }

    public BigDecimal getApplyAmount()
    {
        return applyAmount;
    }

    public void setAuditState(Long auditState)
    {
        this.auditState = auditState;
    }

    public Long getAuditState()
    {
        return auditState;
    }

    public void setApplyTime(Date applyTime)
    {
        this.applyTime = applyTime;
    }

    public Date getApplyTime()
    {
        return applyTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("publicId", getPublicId())
            .append("applyType", getApplyType())
            .append("caseNum", getCaseNum())
            .append("applyAmount", getApplyAmount())
            .append("remark", getRemark())
            .append("auditState", getAuditState())
            .append("applyTime", getApplyTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
